﻿
using System;
namespace XSTDZ.ERP.Infrastructure
{
    /// <summary>
    /// 系统配置
    /// </summary>
   public static class SystemConfig
   {
       #region 授权验证

       /// <summary>
       /// 登陆 Controller 名称 
       /// </summary>
       public const string LoginControllerName = "Account";//配置时，不能加：controller
       /// <summary>
       /// 登陆 ActonName 名称
       /// </summary>
       public const string LoginActonName = "Login"; 

       /// <summary>
       /// 未授权访问的Controller 名称
       /// </summary>
       public const string HttpUnAuthorizedControllerName = "Authentication";
       /// <summary>
       /// 未授权访问的Action 名称
       /// </summary>
       public const string HttpUnAuthorizedActionName = "Index";

       /// <summary>
       /// 超级管理员的ID
       /// </summary>
       public const string AdminId = "CDA76830-B5AA-C5A7-B2DF-08D06387C420";

       #endregion
       #region 系统基础常量
       /// <summary>
       /// 数据库备份文件夹名称
       /// </summary>
       public const string DataBaseBackupName = @"DataBaseBackUp";//数据库备份文件夹名称
       /// <summary>
       /// 系统名称
       /// </summary>
       public const string SystemName = "新盛泰电子信息管理系统";
       /// <summary>
       /// 深圳编码(组织机构)
       /// </summary>
       public const string ShengZhenCode = @"ShengZhenCode";//深圳编码
       /// <summary>
       /// 成都编码(组织机构)
       /// </summary>
       public const string ChengDuCode = @"ChengDuCode";//成都编码
       /// <summary>
       /// 新厂编码(组织机构)
       /// </summary>
       public const string XinChangCode = @"XinChangCode";//新厂编码
       /// <summary>
       /// 老厂编码(组织机构)
       /// </summary>
       public const string LaoChangCode = @"LaoChangCode";//老厂编码
       #endregion
       #region 数据常量
       /// <summary>
       /// 部门图标
       /// </summary>
       public const string deptIcon = @"../Scripts/ligerUI/skins/icons/memeber.gif";
       /// <summary>
       /// 组织机构图标
       /// </summary>
       public const string orgIcon = @"../Scripts/ligerUI/skins/icons/customers.gif";

       /// <summary>
       /// 授权树根结点名称
       /// </summary>
       public const string permissionTreeRootName = @"用户权限菜单";
       public readonly static Guid permissionTreeRootId = Guid.Parse("F4CB4897-B7FB-CF74-66C0-08D05C19FA8A");
       /// <summary>
       /// 空GUID
       /// </summary>
       public readonly static Guid emptyGuid = Guid.Empty;
       #endregion
       #region 业务单据单号模板
       /// <summary>
       /// 单号的分隔符
       /// </summary>
       public const string BuinessBillNOSplitChar = @"-";
       /// <summary>
       /// 单号一天最大容量，(如：5表示：最大支持99999)
       /// </summary>
       public const int BuinessBillNOLength =5;
       /// <summary>
       /// 生成单号是否启用分隔符
       /// </summary>
       public const bool BuinessBillNOHasSplit = false;
       /// <summary>
       /// 通用单据模板格式
       /// </summary>
       public const string BuinessBillNOFormate = @"{1}{0}{2}{0}{3}";
      
       /// <summary>
       /// 发货单单号前辍
       /// </summary>
       public const string DeliveryBillNOFormate = @"FH";
       /// <summary>
       /// 入库单号前辍
       /// </summary>
       public const string InBillNOFormate = @"RK";
       /// <summary>
       /// 出库单号前辍
       /// </summary>
       public const string OutBillNOFormate = @"CK";
       /// <summary>
       /// 盘点单号前辍
       /// </summary>
       public const string CheckBillNOFormate = @"PD";
       /// <summary>
       /// 销退单号前辍
       /// </summary>
       public const string SaleReturnBillNOFormate = @"XT";
       /// <summary>
       /// 损溢报告单号前辍
       /// </summary>
       public const string ProfitAndLossBillNOFormate = @"SY";
       /// <summary>
       /// 退货单号前辍
       /// </summary>
       public const string ReturnBillNOFormate = @"TH";
       /// <summary>
       /// 调拔单号前辍
       /// </summary>
       public const string AllotNOFormate = @"DB";
       /// <summary>
       /// 工资单号（批次号）
       /// </summary>
       public const string WagesBillNO = @"CW";
       #endregion

       #region 系统按钮全局变量
       /// <summary>
       /// 保存按钮
       /// </summary>
       public const string BtnSave = @"保  存";
       /// <summary>
       /// 关闭按钮
       /// </summary>
       public const string BtnClose = @"关  闭";
       /// <summary>
       /// 提交按钮
       /// </summary>
       public const string BtnSubmit = @"提  交";
       /// <summary>
       /// 审核按钮
       /// </summary>
       public const string BtnAudit = @"审  核";
       /// <summary>
       /// 审核通过按钮
       /// </summary>
       public const string BtnAuditOK = @"审核通过";
       /// <summary>
       /// 审核通过按钮
       /// </summary>
       public const string BtnAuditNO = @"审核不通过";
       #endregion
   }
}
